package com.lichuang.fruitvarietysm.cart.feign;

import com.lichuang.fruitvarietysm.cart.feignEntity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Repository
@FeignClient(value = "user")
public interface UserMapper {

    @RequestMapping("user/getCurrentUser")
    User getCurrentUser(@RequestParam(value = "loginToken") String loginToken);
}
